From 530f24f8b14918387a19ae4a7015734a3c18e4d6 Mon Sep 17 00:00:00 2001 From: Keir Fraser Date: Tue, 27 May 2008 11:51:33 +0100 Subject: [PATCH] ioemu: Force floppy disk images to be interpreted as raw. Fixes specifying fda/fdb image names in domain configs. Signed-off-by: Keir Fraser --- tools/ioemu/vl.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tools/ioemu/vl.c b/tools/ioemu/vl.c index 76fa9acf6d..c4fe055389 100644 --- a/tools/ioemu/vl.c +++ b/tools/ioemu/vl.c @@ -7807,8 +7807,9 @@ int main(int argc, char **argv) bdrv_set_type_hint(fd_table[i], BDRV_TYPE_FLOPPY); } if (fd_filename[i] != '\0') { - if (bdrv_open(fd_table[i], fd_filename[i], - snapshot ? BDRV_O_SNAPSHOT : 0) < 0) { + if (bdrv_open2(fd_table[i], fd_filename[i], + snapshot ? BDRV_O_SNAPSHOT : 0, + &bdrv_raw) < 0) { fprintf(stderr, "qemu: could not open floppy disk image '%s'\n", fd_filename[i]); exit(1); -- 2.30.2